package cn.tedu.test.luban.demo.config;

import cn.tedu.test.luban.demo.bean.Bean01;
import cn.tedu.test.luban.demo.selector.MySelector;
import org.springframework.context.annotation.*;

@Configuration
@ComponentScan(basePackages = "cn.tedu.test.luban.demo.bean")
//@Import(value = MyConfig02.class)
@Import(value = MySelector.class)
@PropertySource(value = "classpath:jdbc.properties")
public class MyConfig01 {

    public MyConfig01() {
        System.out.println("MyConfig01被容器加载了");
    }

    @Bean
    public Bean01 bean01() {
        return new Bean01();
    }
}
